// 提供服务器根地址
const yun = 'http://114.116.112.52:8080/';

// 菜单项配置页
const menuItem = [
    {
        type: '顾客',
        item: [
            {
                name: '用户详情',
                url: './#',
            },
            {
                name: '点餐',
                url: './#',
            },
        ],
    },
    {
        type: '服务员',
        item: [
            {
                name: '用户详情',
                url: './#',
            },
            {
                name: '点餐',
                url: './#',
            },
        ],
    },
    {
        type: '厨师',
        item: [
            {
                name: '用户详情',
                url: './#',
            },
            {
                name: '点餐',
                url: './#',
            },
        ],
    },
    {
        type: '管理员',
        item: [
            {
                name: '用户详情',
                url: './#',
            },
            {
                name: '点餐',
                url: './#',
            },
        ],
    },
];

// 获取时间
const getNow = function () {
    let data = new Date();
    let year = data.getFullYear();
    let month = data.getMonth() + 1;
    let date = data.getDate();
    let week = '日一二三四五六'[data.getDay()];
    let hh = data.getHours();
    let mm = data.getMinutes();
    let ss = data.getSeconds();
    return `${year}年${month}月${date}日 星期${week} ${hh}:${mm}:${ss}`;
}